package com.fjnldx.mes.controller.historyData;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjnldx.mes.domain.domainReq.HistoryDataQueryReq;
import com.fjnldx.mes.domain.domainReq.MachineNumberReq;
import com.fjnldx.mes.domain.domainReq.PageRequest;
import com.fjnldx.mes.domain.domainRes.Result;
import com.fjnldx.mes.service.historicalData.HistoricalDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/historicalData/historicalTrack")
@Api(value = "历史查询", tags = "历史查询模块")
public class HistoricalDataController {

    @Resource
    private HistoricalDataService historicalDataService;

    @GetMapping("/employmentHistoryData")
    @ApiOperation(value = "各工序各设备某参数历史数据查询", notes = "Api")
    public Result getEmploymentHistoryData(HistoryDataQueryReq historyDataQueryReq, Page page){
        return historicalDataService.getEmploymentHistoryData(historyDataQueryReq, page);
    }
}
